<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.yc.wabc.pojo.SNSUserInfo" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<base href="<%=basePath%>">
	<title>邀请函</title>
	<meta name="viewport" content="width=device-width,user-scalable=0">
	<style type="text/css">

	
	
		*{margin:0; padding:0}
		/*   table{border:1px dashed #B9B9DD;font-size:12pt}
		td{border:1px dashed #B9B9DD;word-break:break-all; word-wrap:break-word;}   */
body{
	width:100%;
	height: 100%;
	background-image: url(<%=basePath%>/../images/bg.png);
	background-size: 100% 100%;  
    -moz-background-size: 100% 100%;  
    -webkit-background-size: 100% 100%; 
}		
		
.info{
	
	background:rgba(107,36,109,0.5);
	border:1px solid white;
	border-radius: 10px;
	font-size: 18px;
	color:white;
	padding-left:20px;	
	text-align: left;
	margin-top: 50px;
}
.btn{
	width:500px;
	height:60px;
	margin:auto;
	background:rgba(240,120,93,0.7);
	border-radius: 4px;
	border: none;
	font-size: 18px;
	color:white;
	text-align: center;
	margin-top: 50px;
}
.information{
	width:500px;
	margin: auto;
}
.t{
	
	text-align: center;
	color: white;
	font-size:50px;
	margin-top:30%;
}

.wenzi{
 	display:block;
	color:white;	
	text-align: right;
	margin-top: 50px;
	font-size: 24px;
	
}
	</style>
</head>
<body >
	<% 
		// 获取由OAuthServlet中传入的参数
		SNSUserInfo user = (SNSUserInfo)request.getAttribute("snsUserInfo"); 
		if(null != user) {
	%>
	<%-- <table width="100%" cellspacing="0" cellpadding="0">
		 <tr><td width="20%">属性</td><td width="80%">值</td></tr>
		<tr><td>OpenID</td><td><%=user.getOpenId()%></td></tr>
		<tr><td>昵称</td><td><%=user.getNickname()%></td></tr>
		<tr><td>性别</td><td><%=user.getSex()%></td></tr>
		<tr><td>国家</td><td><%=user.getCountry()%></td></tr>
		<tr><td>省份</td><td><%=user.getProvince()%></td></tr>
		<tr><td>城市</td><td><%=user.getCity()%></td></tr>
		<tr><td>头像</td><td><img src="<%=user.getHeadImgUrl()%>"  width="60px" height="60px"/></td></tr>
		<tr><td>特权</td><td><%=user.getPrivilegeList()%></td></tr>
	</table> --%>
	<br>
	<br>
	<br>
	
	
	<h1 style="text-align:center" class="t">邀请函</h1>
	<form action="<%=basePath%>QrcodeServlet.action" method="get">
	<table width="100%" cellspacing="0" cellpadding="0"  >
		<tr><td width="20%" ><span class="wenzi">姓名:</span></td><td width="80%" ><input type="text" placeholder="请输入您的名字" id="name" name="name" style="width: 90%;height: 45;font-size: 24;" class="info"></td></tr>
		<tr><td><span class="wenzi">电话:</span></td><td><input type="text" id="phone" name="phone" placeholder="请输入您的电话"  style="width: 90%;height: 45;font-size: 24;" class="info"></td></tr>
		<tr><td></td><td  style="text-align: left: ;"><input type="submit"  value="确定" style="width: 90% ;height: 40" class="btn" ></td></tr>
		
	</table>
	</form>
	
	<%
		}
		else 
			out.print("用户不同意授权,未获取到用户信息！");
	%>
</body>
</html>
